package com.zhu;

import com.alibaba.fastjson.JSONObject;
import com.zhu.scan.bean.MyBean;
import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @ClassName XmlTest
 * @Description TODO
 * @Author zhuxiongbin
 * @Date 2021-11-05 13:47
 * @Version 1.0.0
 */
public class XmlTest {

    @Test
    public void test1(){
        ClassPathXmlApplicationContext classPathXmlApplicationContext = new ClassPathXmlApplicationContext("spring.xml");

    }

    @Test
    public void test2(){
        ClassPathXmlApplicationContext classPathXmlApplicationContext = new ClassPathXmlApplicationContext("spring.xml");
        MyBean bean = classPathXmlApplicationContext.getBean(MyBean.class);
        System.out.println(bean);
    }

    @Test
    public void test3(){
        Object parse = JSONObject.parse("11");
        System.out.println(parse);
    }
}
